{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set script_controller = 'classroombundle/controller/classroom-admin/recommend-list' %}
{% set menu = 'admin_classroom_recommend' %}

{% block main %}

  <table class="table table-striped table-hover" id="classroom-table">
    <thead>
    <tr>
      <th>{{'顺序号'|trans}}</th>
      <th width="50%">{{'%name%名称'|trans({'%name%':setting('classroom.name')|default('班级'|trans)})}}</th>
      <th>{{'创建时间'|trans}}</th>
      <th>{{'推荐时间'|trans}}</th>
      <th>{{'操作'|trans}}</th>
    </tr>
    </thead>
    <tbody>
      {% for classroom in classrooms %}
        {% include 'ClassroomBundle:ClassroomAdmin:recommend-tr.html.twig' %}
      {% else %}
        <tr><td colspan="20"><div class="empty">{{'暂无推荐%name%'|trans({'%name%':setting('classroom.name')|default('班级'|trans)})}}</div></td></tr>
      {% endfor %}
    </tbody>
  </table>

  <nav class="text-center">
    {{ web_macro.paginator(paginator) }} 
  </nav>

{% endblock %}